package com.example.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.core.po.BaseCorePo;
import com.example.core.po.BasePo;
import com.example.core.vo.BaseVo;

import java.util.List;

public interface BaseCoreService<T extends BaseCorePo> extends IService<T> {

    public void save(BasePo po) throws Exception;

    public void update(BasePo po) throws Exception;

    public void delete(BasePo po) throws Exception;

    public void toPo(BasePo po, BaseVo vo) throws Exception;

    public void toVo(BasePo po, BaseVo vo) throws Exception;

    public List<T> findList(String modelId, String modelName, String modelKey);

    public List<String> findIdList(String modelId, String modelName, String modelKey);
}
